package mainServer;

import interaction.BDConnection;
import interaction.BDDisconnect;
import CorbaModule.ICorbaServerPOA;

public class CorbaServerImpl extends ICorbaServerPOA 
{
	private CorbaServer m_server;
	
	public CorbaServerImpl(CorbaServer server)
	{
		m_server = server;
	}

	@Override
	public int connect() 
	{
		BDConnection query = new BDConnection();
		
		return m_server.addClient(query);
	}
	
	@Override
	public void disconnect(int id) 
	{
		BDDisconnect query = new BDDisconnect();
		
		query.m_clientId = id;
		m_server.removeClient(query);
	}

	@Override
	public String SendBDR() {
		// TODO Auto-generated method stub
		return null;
	}
}
